package com.imooc.class16;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

@Configuration
@ComponentScan("com.imooc")
@Lazy
public class TestConfiguration {
    @Bean("bean1")
//    @Lazy
    public TestBean testBean1(){
        return new TestBean();
    }
}
